home *** CD-ROM | disk | FTP | other *** search
- total = config.getBytesTotal() + getBytesTotal();
- loaded = config.getBytesLoaded() + getBytesLoaded();
- loader.gotoAndStop(1 + Math.round(5 * loaded / total));
- if(isFinite(loaded + "") && isFinite(total + "") && loaded < total)
- {
- gotoAndPlay(2);
- }
- else
- {
- root = config.firstChild;
- while(root.nodeType != 1)
- {
- root = root.nextSibling;
- }
- var i = 0;
- while(i < root.childNodes.length)
- {
- brench = root.childNodes[i];
- if(brench.nodeType == 1 && brench.nodeName == "images")
- {
- var j = 0;
- while(j < brench.childNodes.length)
- {
- if(brench.childNodes[j].nodeType == 1)
- {
- addImage(brench.childNodes[j]);
- }
- j++;
- }
- }
- if(brench.nodeType == 1 && brench.nodeName == "params")
- {
- var j = 0;
- while(j < brench.childNodes.length)
- {
- if(brench.childNodes[j].nodeType == 1)
- {
- set(brench.childNodes[j].nodeName,brench.childNodes[j].firstChild);
- }
- j++;
- }
- }
- i++;
- }
- }
-